﻿@model Solution.Business.Entities.Transaction

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Loại giao dịch</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Name, "Tên loại giao dịch :")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
             <span style="color:red;">*</span>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TrGroup, "Nhóm chung loại giao dịch :")
        </div>
        <div class="editor-field">
        <select id="TrGroup" name="TrGroup">
            <option value="0">Select...</option>
            <option value="1">Nhóm Bán/Mua</option>
            <option value="2">Nhóm Cho thuê/Cần thuê</option>
        </select>
             <span style="color:red;">*</span>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Level, "Level :")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Level)
            @Html.ValidationMessageFor(model => model.Level)
             <span style="color:red;">*</span>
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TrGroup2, "Nhóm riêng loại giao dịch :")
        </div>
        <div class="editor-field">
        <select id="TrGroup2" name="TrGroup2">
            <option value="0">Select...</option>
            <option value="1">Nhóm Bán BĐS</option>
            <option value="2">Nhóm Mua BĐS</option>
            <option value="3">Nhóm Cho thuê BĐS</option>
            <option value="4">Nhóm Cần thuê BĐS</option>
        </select>
             <span style="color:red;">*</span>
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
